#pragma once

#include <QDialog>
#include "project.h"

namespace Ui {
class ProjectDialog;
}

class ProjectDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ProjectDialog(QWidget *parent = nullptr);
    ~ProjectDialog();

    static Project getNewProject();

    QString getProjectName();
    QString getProjectDirPath();
private slots:
    void on_btnLoadDirPath_clicked();

    void on_buttonBox_accepted();

    void on_leProjectName_textChanged(const QString &text);

    void on_leProjectDirPath_textChanged(const QString &text);

private:
    Ui::ProjectDialog *ui;
};
